package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 记录用户订阅模版消息,区分谁订阅了
 */
@Getter
@Setter
@Document(collection = "user_app_sub_wechat_template_msg")
public class UserAppSubWechatTemplateMsg extends EntityBase {
    @Indexed
    private String userId;
    @Indexed
    private String platform;
    private String appId;
    private String taskId;
    @Indexed
    private String templateId;
    /**
     * 订阅时间
     */
    @Indexed
    private Date subTime;
    private String openId;
    private String unionId;
    /**
     * 头像
     */
    private String avatarUrl;
    /**
     * 昵称
     */
    private String nickName;
    /**
     * 手机号
     */
    private String mobile;
    /**
     * email
     */
    private String email;
}